//
//  WBDemoViewController.swift
//  weibo
//
//  Created by 李海超 on 2017/5/21.
//  Copyright © 2017年 lihaichao. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        title = "第\(navigationController?.childViewControllers.count ?? 0)个"

        // Do any additional setup after loading the view.
    }

    override func setupTaleView() {
        super.setupTaleView()
                
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", fontSize: 16, target: self, action: #selector(nextPage))
    }
    
    @objc private func nextPage(){
        
        let vc = WBDemoViewController()
        
        navigationController?.pushViewController(vc, animated: true)
    }


}
